import axios from 'axios'

// 创建axios实例
// const httpInstance = axios.create({
//   baseURL: 'http://cjr8py.natappfree.cc',
//   timeout: 10000
// })

// axios请求拦截器
httpInstance.interceptors.request.use(config => {
  return config
}, e => Promise.reject(e))

// axios响应式拦截器
httpInstance.interceptors.response.use(res => res.data, e => {
  return Promise.reject(e)
})


export default httpInstance